// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import store from './store/index'
import ElementUI from 'element-ui'
import * as echarts from 'echarts'
import dataV from '@jiaminghi/data-view'
import APlayer from '@moefe/vue-aplayer';
import viewCard from './components/common/viewCard'
import 'element-ui/lib/theme-chalk/index.css'
import {router} from './router'

//util
import {jsonToParse} from "./util/util";

import {
  getRequest,
  postRequest
} from './util/requests/requests'

Vue.prototype.$echarts = echarts;
Vue.prototype.$getRequest = getRequest;
Vue.prototype.$postRequest = postRequest;
Vue.prototype.$jsonToParse = jsonToParse;
Vue.component('viewCard',viewCard);
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(dataV)
Vue.use(APlayer);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {App},
  template: '<App/>'
})
